#pragma once
#include <QObject>

class RoomHandler;

class InvitationHandler : public QObject {
    Q_OBJECT
public:
    InvitationHandler(RoomHandler* roomHandler, QObject* parent = nullptr) : roomHandler(roomHandler), QObject(parent) {}

    void sendInvitation(const quint16& roomId, const quint16& userId);

    void acceptInvitation(const quint16& id, const quint16& roomId);

    void declineInvitation(const quint16& id);

private:
    void delInvitation(const quint16& id);

    RoomHandler* roomHandler;
};